Integrand size = 45, antiderivative size = 184 \[ \int \frac {(a+a \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\frac {2 a^2 (4 A+6 B+5 C) \sin (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \cos (c+d x)}}+\frac {2 a^2 (104 A+126 B+175 C) \sin (c+d x)}{105 d \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}+\frac {2 a (3 A+7 B) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{35 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 A (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{7 d \cos ^{\frac {7}{2}}(c+d x)} \]
2/7*A*(a+a*cos(d*x+c))^(3/2)*sin(d*x+c)/d/cos(d*x+c)^(7/2)+2/15*a^2*(4*A+6 *B+5*C)*sin(d*x+c)/d/cos(d*x+c)^(3/2)/(a+a*cos(d*x+c))^(1/2)+2/105*a^2*(10 4*A+126*B+175*C)*sin(d*x+c)/d/cos(d*x+c)^(1/2)/(a+a*cos(d*x+c))^(1/2)+2/35 *a*(3*A+7*B)*sin(d*x+c)*(a+a*cos(d*x+c))^(1/2)/d/cos(d*x+c)^(5/2)
Time = 0.76 (sec) , antiderivative size = 122, normalized size of antiderivative = 0.66 \[ \int \frac {(a+a \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\frac {a \sqrt {a (1+\cos (c+d x))} (164 A+126 B+70 C+(468 A+462 B+525 C) \cos (c+d x)+2 (52 A+63 B+35 C) \cos (2 (c+d x))+104 A \cos (3 (c+d x))+126 B \cos (3 (c+d x))+175 C \cos (3 (c+d x))) \tan \left (\frac {1}{2} (c+d x)\right )}{210 d \cos ^{\frac {7}{2}}(c+d x)} \]
Integrate[((a + a*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x] + C*Cos[c + d*x] ^2))/Cos[c + d*x]^(9/2),x]
(a*Sqrt[a*(1 + Cos[c + d*x])]*(164*A + 126*B + 70*C + (468*A + 462*B + 525 *C)*Cos[c + d*x] + 2*(52*A + 63*B + 35*C)*Cos[2*(c + d*x)] + 104*A*Cos[3*( c + d*x)] + 126*B*Cos[3*(c + d*x)] + 175*C*Cos[3*(c + d*x)])*Tan[(c + d*x) /2])/(210*d*Cos[c + d*x]^(7/2))
Time = 1.07 (sec) , antiderivative size = 199, normalized size of antiderivative = 1.08, number of steps used = 10, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {3042, 3522, 27, 3042, 3454, 27, 3042, 3459, 3042, 3250}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(a \cos (c+d x)+a)^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\left (a \sin \left (c+d x+\frac {\pi }{2}\right )+a\right )^{3/2} \left (A+B \sin \left (c+d x+\frac {\pi }{2}\right )+C \sin \left (c+d x+\frac {\pi }{2}\right )^2\right )}{\sin \left (c+d x+\frac {\pi }{2}\right )^{9/2}}dx\) |
\(\Big \downarrow \) 3522 |
\(\displaystyle \frac {2 \int \frac {(\cos (c+d x) a+a)^{3/2} (a (3 A+7 B)+a (2 A+7 C) \cos (c+d x))}{2 \cos ^{\frac {7}{2}}(c+d x)}dx}{7 a}+\frac {2 A \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{7 d \cos ^{\frac {7}{2}}(c+d x)}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\int \frac {(\cos (c+d x) a+a)^{3/2} (a (3 A+7 B)+a (2 A+7 C) \cos (c+d x))}{\cos ^{\frac {7}{2}}(c+d x)}dx}{7 a}+\frac {2 A \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{7 d \cos ^{\frac {7}{2}}(c+d x)}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int \frac {\left (\sin \left (c+d x+\frac {\pi }{2}\right ) a+a\right )^{3/2} \left (a (3 A+7 B)+a (2 A+7 C) \sin \left (c+d x+\frac {\pi }{2}\right )\right )}{\sin \left (c+d x+\frac {\pi }{2}\right )^{7/2}}dx}{7 a}+\frac {2 A \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{7 d \cos ^{\frac {7}{2}}(c+d x)}\) |
\(\Big \downarrow \) 3454 |
\(\displaystyle \frac {\frac {2}{5} \int \frac {\sqrt {\cos (c+d x) a+a} \left (7 (4 A+6 B+5 C) a^2+(16 A+14 B+35 C) \cos (c+d x) a^2\right )}{2 \cos ^{\frac {5}{2}}(c+d x)}dx+\frac {2 a^2 (3 A+7 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{5 d \cos ^{\frac {5}{2}}(c+d x)}}{7 a}+\frac {2 A \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{7 d \cos ^{\frac {7}{2}}(c+d x)}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {1}{5} \int \frac {\sqrt {\cos (c+d x) a+a} \left (7 (4 A+6 B+5 C) a^2+(16 A+14 B+35 C) \cos (c+d x) a^2\right )}{\cos ^{\frac {5}{2}}(c+d x)}dx+\frac {2 a^2 (3 A+7 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{5 d \cos ^{\frac {5}{2}}(c+d x)}}{7 a}+\frac {2 A \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{7 d \cos ^{\frac {7}{2}}(c+d x)}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {1}{5} \int \frac {\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a} \left (7 (4 A+6 B+5 C) a^2+(16 A+14 B+35 C) \sin \left (c+d x+\frac {\pi }{2}\right ) a^2\right )}{\sin \left (c+d x+\frac {\pi }{2}\right )^{5/2}}dx+\frac {2 a^2 (3 A+7 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{5 d \cos ^{\frac {5}{2}}(c+d x)}}{7 a}+\frac {2 A \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{7 d \cos ^{\frac {7}{2}}(c+d x)}\) |
\(\Big \downarrow \) 3459 |
\(\displaystyle \frac {\frac {1}{5} \left (\frac {1}{3} a^2 (104 A+126 B+175 C) \int \frac {\sqrt {\cos (c+d x) a+a}}{\cos ^{\frac {3}{2}}(c+d x)}dx+\frac {14 a^3 (4 A+6 B+5 C) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}\right )+\frac {2 a^2 (3 A+7 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{5 d \cos ^{\frac {5}{2}}(c+d x)}}{7 a}+\frac {2 A \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{7 d \cos ^{\frac {7}{2}}(c+d x)}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\frac {1}{5} \left (\frac {1}{3} a^2 (104 A+126 B+175 C) \int \frac {\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right ) a+a}}{\sin \left (c+d x+\frac {\pi }{2}\right )^{3/2}}dx+\frac {14 a^3 (4 A+6 B+5 C) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}\right )+\frac {2 a^2 (3 A+7 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{5 d \cos ^{\frac {5}{2}}(c+d x)}}{7 a}+\frac {2 A \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{7 d \cos ^{\frac {7}{2}}(c+d x)}\) |
\(\Big \downarrow \) 3250 |
\(\displaystyle \frac {\frac {1}{5} \left (\frac {14 a^3 (4 A+6 B+5 C) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}+\frac {2 a^3 (104 A+126 B+175 C) \sin (c+d x)}{3 d \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )+\frac {2 a^2 (3 A+7 B) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{5 d \cos ^{\frac {5}{2}}(c+d x)}}{7 a}+\frac {2 A \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{7 d \cos ^{\frac {7}{2}}(c+d x)}\) |
Int[((a + a*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2))/C os[c + d*x]^(9/2),x]
(2*A*(a + a*Cos[c + d*x])^(3/2)*Sin[c + d*x])/(7*d*Cos[c + d*x]^(7/2)) + ( (2*a^2*(3*A + 7*B)*Sqrt[a + a*Cos[c + d*x]]*Sin[c + d*x])/(5*d*Cos[c + d*x ]^(5/2)) + ((14*a^3*(4*A + 6*B + 5*C)*Sin[c + d*x])/(3*d*Cos[c + d*x]^(3/2 )*Sqrt[a + a*Cos[c + d*x]]) + (2*a^3*(104*A + 126*B + 175*C)*Sin[c + d*x]) /(3*d*Sqrt[Cos[c + d*x]]*Sqrt[a + a*Cos[c + d*x]]))/5)/(7*a)
3.5.90.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/((c_.) + (d_.)*sin[(e_.) + ( f_.)*(x_)])^(3/2), x_Symbol] :> Simp[-2*b^2*(Cos[e + f*x]/(f*(b*c + a*d)*Sq rt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]])), x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim p[(-b^2)*(B*c - A*d)*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m - 1)*((c + d*Sin[ e + f*x])^(n + 1)/(d*f*(n + 1)*(b*c + a*d))), x] - Simp[b/(d*(n + 1)*(b*c + a*d)) Int[(a + b*Sin[e + f*x])^(m - 1)*(c + d*Sin[e + f*x])^(n + 1)*Simp [a*A*d*(m - n - 2) - B*(a*c*(m - 1) + b*d*(n + 1)) - (A*b*d*(m + n + 1) - B *(b*c*m - a*d*(n + 1)))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f , A, B}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[m, 1/2] && LtQ[n, -1] && IntegerQ[2*m] && (IntegerQ[2*n] || EqQ[c, 0 ])
Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((A_.) + (B_.)*sin[(e_.) + ( f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp [(-b^2)*(B*c - A*d)*Cos[e + f*x]*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(n + 1) *(b*c + a*d)*Sqrt[a + b*Sin[e + f*x]])), x] + Simp[(A*b*d*(2*n + 3) - B*(b* c - 2*a*d*(n + 1)))/(2*d*(n + 1)*(b*c + a*d)) Int[Sqrt[a + b*Sin[e + f*x] ]*(c + d*Sin[e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, c, d, e, f, A, B}, x ] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && LtQ[n, -1]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2), x_Symbol] :> Simp[(-(c^2*C - B*c*d + A*d^2))*Cos[e + f*x ]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(n + 1)*(c^2 - d^2))), x] + Simp[1/(b*d*(n + 1)*(c^2 - d^2)) Int[(a + b*Sin[e + f*x])^m* (c + d*Sin[e + f*x])^(n + 1)*Simp[A*d*(a*d*m + b*c*(n + 1)) + (c*C - B*d)*( a*c*m + b*d*(n + 1)) + b*(d*(B*c - A*d)*(m + n + 2) - C*(c^2*(m + 1) + d^2* (n + 1)))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C, m}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && !LtQ [m, -2^(-1)] && (LtQ[n, -1] || EqQ[m + n + 2, 0])
Time = 13.65 (sec) , antiderivative size = 131, normalized size of antiderivative = 0.71
method | result | size |
default | \(\frac {2 a \sin \left (d x +c \right ) \left (104 A \left (\cos ^{3}\left (d x +c \right )\right )+126 B \left (\cos ^{3}\left (d x +c \right )\right )+175 C \left (\cos ^{3}\left (d x +c \right )\right )+52 A \left (\cos ^{2}\left (d x +c \right )\right )+63 B \left (\cos ^{2}\left (d x +c \right )\right )+35 C \left (\cos ^{2}\left (d x +c \right )\right )+39 A \cos \left (d x +c \right )+21 B \cos \left (d x +c \right )+15 A \right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}}{105 d \left (1+\cos \left (d x +c \right )\right ) \cos \left (d x +c \right )^{\frac {7}{2}}}\) | \(131\) |
parts | \(\frac {2 A \sin \left (d x +c \right ) \left (104 \left (\cos ^{3}\left (d x +c \right )\right )+52 \left (\cos ^{2}\left (d x +c \right )\right )+39 \cos \left (d x +c \right )+15\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, a}{105 d \left (1+\cos \left (d x +c \right )\right ) \cos \left (d x +c \right )^{\frac {7}{2}}}+\frac {2 B \sin \left (d x +c \right ) \left (6 \left (\cos ^{2}\left (d x +c \right )\right )+3 \cos \left (d x +c \right )+1\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, a}{5 d \left (1+\cos \left (d x +c \right )\right ) \cos \left (d x +c \right )^{\frac {5}{2}}}+\frac {2 C \sin \left (d x +c \right ) \left (5 \cos \left (d x +c \right )+1\right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, a}{3 d \left (1+\cos \left (d x +c \right )\right ) \cos \left (d x +c \right )^{\frac {3}{2}}}\) | \(191\) |
int((a+cos(d*x+c)*a)^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/cos(d*x+c)^(9/2 ),x,method=_RETURNVERBOSE)
2/105*a/d*sin(d*x+c)*(104*A*cos(d*x+c)^3+126*B*cos(d*x+c)^3+175*C*cos(d*x+ c)^3+52*A*cos(d*x+c)^2+63*B*cos(d*x+c)^2+35*C*cos(d*x+c)^2+39*A*cos(d*x+c) +21*B*cos(d*x+c)+15*A)*(a*(1+cos(d*x+c)))^(1/2)/(1+cos(d*x+c))/cos(d*x+c)^ (7/2)
Time = 0.28 (sec) , antiderivative size = 112, normalized size of antiderivative = 0.61 \[ \int \frac {(a+a \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\frac {2 \, {\left ({\left (104 \, A + 126 \, B + 175 \, C\right )} a \cos \left (d x + c\right )^{3} + {\left (52 \, A + 63 \, B + 35 \, C\right )} a \cos \left (d x + c\right )^{2} + 3 \, {\left (13 \, A + 7 \, B\right )} a \cos \left (d x + c\right ) + 15 \, A a\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{105 \, {\left (d \cos \left (d x + c\right )^{5} + d \cos \left (d x + c\right )^{4}\right )}} \]
integrate((a+a*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/cos(d*x+c )^(9/2),x, algorithm="fricas")
2/105*((104*A + 126*B + 175*C)*a*cos(d*x + c)^3 + (52*A + 63*B + 35*C)*a*c os(d*x + c)^2 + 3*(13*A + 7*B)*a*cos(d*x + c) + 15*A*a)*sqrt(a*cos(d*x + c ) + a)*sqrt(cos(d*x + c))*sin(d*x + c)/(d*cos(d*x + c)^5 + d*cos(d*x + c)^ 4)
Timed out. \[ \int \frac {(a+a \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\text {Timed out} \]
Leaf count of result is larger than twice the leaf count of optimal. 604 vs. \(2 (160) = 320\).
Time = 0.38 (sec) , antiderivative size = 604, normalized size of antiderivative = 3.28 \[ \int \frac {(a+a \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\frac {4 \, {\left (\frac {35 \, {\left (\frac {3 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {5 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {2 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}}\right )} C}{{\left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {5}{2}} {\left (-\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {5}{2}}} + \frac {21 \, {\left (\frac {5 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {10 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {7 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {2 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}\right )} B {\left (\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 1\right )}^{2}}{{\left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {7}{2}} {\left (-\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {7}{2}} {\left (\frac {2 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {\sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + 1\right )}} + \frac {{\left (\frac {105 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {245 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {273 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {171 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} + \frac {38 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}}\right )} A {\left (\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 1\right )}^{3}}{{\left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {9}{2}} {\left (-\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {9}{2}} {\left (\frac {3 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {3 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + \frac {\sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + 1\right )}}\right )}}{105 \, d} \]
integrate((a+a*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/cos(d*x+c )^(9/2),x, algorithm="maxima")
4/105*(35*(3*sqrt(2)*a^(3/2)*sin(d*x + c)/(cos(d*x + c) + 1) - 5*sqrt(2)*a ^(3/2)*sin(d*x + c)^3/(cos(d*x + c) + 1)^3 + 2*sqrt(2)*a^(3/2)*sin(d*x + c )^5/(cos(d*x + c) + 1)^5)*C/((sin(d*x + c)/(cos(d*x + c) + 1) + 1)^(5/2)*( -sin(d*x + c)/(cos(d*x + c) + 1) + 1)^(5/2)) + 21*(5*sqrt(2)*a^(3/2)*sin(d *x + c)/(cos(d*x + c) + 1) - 10*sqrt(2)*a^(3/2)*sin(d*x + c)^3/(cos(d*x + c) + 1)^3 + 7*sqrt(2)*a^(3/2)*sin(d*x + c)^5/(cos(d*x + c) + 1)^5 - 2*sqrt (2)*a^(3/2)*sin(d*x + c)^7/(cos(d*x + c) + 1)^7)*B*(sin(d*x + c)^2/(cos(d* x + c) + 1)^2 + 1)^2/((sin(d*x + c)/(cos(d*x + c) + 1) + 1)^(7/2)*(-sin(d* x + c)/(cos(d*x + c) + 1) + 1)^(7/2)*(2*sin(d*x + c)^2/(cos(d*x + c) + 1)^ 2 + sin(d*x + c)^4/(cos(d*x + c) + 1)^4 + 1)) + (105*sqrt(2)*a^(3/2)*sin(d *x + c)/(cos(d*x + c) + 1) - 245*sqrt(2)*a^(3/2)*sin(d*x + c)^3/(cos(d*x + c) + 1)^3 + 273*sqrt(2)*a^(3/2)*sin(d*x + c)^5/(cos(d*x + c) + 1)^5 - 171 *sqrt(2)*a^(3/2)*sin(d*x + c)^7/(cos(d*x + c) + 1)^7 + 38*sqrt(2)*a^(3/2)* sin(d*x + c)^9/(cos(d*x + c) + 1)^9)*A*(sin(d*x + c)^2/(cos(d*x + c) + 1)^ 2 + 1)^3/((sin(d*x + c)/(cos(d*x + c) + 1) + 1)^(9/2)*(-sin(d*x + c)/(cos( d*x + c) + 1) + 1)^(9/2)*(3*sin(d*x + c)^2/(cos(d*x + c) + 1)^2 + 3*sin(d* x + c)^4/(cos(d*x + c) + 1)^4 + sin(d*x + c)^6/(cos(d*x + c) + 1)^6 + 1))) /d
Result contains complex when optimal does not.
Time = 287.39 (sec) , antiderivative size = 201151, normalized size of antiderivative = 1093.21 \[ \int \frac {(a+a \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=\text {Too large to display} \]
integrate((a+a*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/cos(d*x+c )^(9/2),x, algorithm="giac")
33554432/105*sqrt(2)*sqrt(-tan(1/4*d*x + c)^4*tan(1/2*c)^8 + 14*tan(1/4*d* x + c)^4*tan(1/2*c)^6 - 24*tan(1/4*d*x + c)^3*tan(1/2*c)^7 + 6*tan(1/4*d*x + c)^2*tan(1/2*c)^8 + 56*tan(1/4*d*x + c)^3*tan(1/2*c)^5 - 84*tan(1/4*d*x + c)^2*tan(1/2*c)^6 + 24*tan(1/4*d*x + c)*tan(1/2*c)^7 - tan(1/2*c)^8 - 1 4*tan(1/4*d*x + c)^4*tan(1/2*c)^2 + 56*tan(1/4*d*x + c)^3*tan(1/2*c)^3 - 5 6*tan(1/4*d*x + c)*tan(1/2*c)^5 + 14*tan(1/2*c)^6 + tan(1/4*d*x + c)^4 - 2 4*tan(1/4*d*x + c)^3*tan(1/2*c) + 84*tan(1/4*d*x + c)^2*tan(1/2*c)^2 - 56* tan(1/4*d*x + c)*tan(1/2*c)^3 - 6*tan(1/4*d*x + c)^2 + 24*tan(1/4*d*x + c) *tan(1/2*c) - 14*tan(1/2*c)^2 + 1)*(((((((((((((((-104*I*A*a*e^(1055/2*I*c ) - 126*I*B*a*e^(1055/2*I*c) - 175*I*C*a*e^(1055/2*I*c) - 42016*I*A*a*e^(1 053/2*I*c) - 50904*I*B*a*e^(1053/2*I*c) - 70700*I*C*a*e^(1053/2*I*c) - 846 6224*I*A*a*e^(1051/2*I*c) - 10257156*I*B*a*e^(1051/2*I*c) - 14246050*I*C*a *e^(1051/2*I*c) - 1134474016*I*A*a*e^(1049/2*I*c) - 1374458904*I*B*a*e^(10 49/2*I*c) - 1908970595*I*C*a*e^(1049/2*I*c) - 113731020104*I*A*a*e^(1047/2 *I*c) - 137789505126*I*B*a*e^(1047/2*I*c) - 191374270255*I*C*a*e^(1047/2*I *c) - 9098481608320*I*A*a*e^(1045/2*I*c) - 11023160410080*I*B*a*e^(1045/2* I*c) - 15309936466370*I*C*a*e^(1045/2*I*c) - 605049026953956*I*A*a*e^(1043 /2*I*c) - 733040167271034*I*B*a*e^(1043/2*I*c) - 1018110198049560*I*C*a*e^ (1043/2*I*c) - 34401358961331024*I*A*a*e^(1041/2*I*c) - 41678569510800936* I*B*a*e^(1041/2*I*c) - 57886787273742315*I*C*a*e^(1041/2*I*c) - 1707167...
Time = 9.97 (sec) , antiderivative size = 273, normalized size of antiderivative = 1.48 \[ \int \frac {(a+a \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\cos ^{\frac {9}{2}}(c+d x)} \, dx=-\frac {\sqrt {a+a\,\cos \left (c+d\,x\right )}\,\left (\frac {4\,C\,a\,{\mathrm {e}}^{\frac {c\,7{}\mathrm {i}}{2}+\frac {d\,x\,7{}\mathrm {i}}{2}}\,\sin \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )}{d}+\frac {4\,a\,{\mathrm {e}}^{\frac {c\,7{}\mathrm {i}}{2}+\frac {d\,x\,7{}\mathrm {i}}{2}}\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (4\,A+6\,B+11\,C\right )}{3\,d}-\frac {4\,a\,{\mathrm {e}}^{\frac {c\,7{}\mathrm {i}}{2}+\frac {d\,x\,7{}\mathrm {i}}{2}}\,\sin \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )\,\left (52\,A+48\,B+65\,C\right )}{15\,d}-\frac {4\,a\,{\mathrm {e}}^{\frac {c\,7{}\mathrm {i}}{2}+\frac {d\,x\,7{}\mathrm {i}}{2}}\,\sin \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )\,\left (104\,A+126\,B+175\,C\right )}{105\,d}\right )}{6\,\sqrt {\cos \left (c+d\,x\right )}\,{\mathrm {e}}^{\frac {c\,7{}\mathrm {i}}{2}+\frac {d\,x\,7{}\mathrm {i}}{2}}\,\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )+6\,\sqrt {\cos \left (c+d\,x\right )}\,{\mathrm {e}}^{\frac {c\,7{}\mathrm {i}}{2}+\frac {d\,x\,7{}\mathrm {i}}{2}}\,\cos \left (\frac {3\,c}{2}+\frac {3\,d\,x}{2}\right )+2\,\sqrt {\cos \left (c+d\,x\right )}\,{\mathrm {e}}^{\frac {c\,7{}\mathrm {i}}{2}+\frac {d\,x\,7{}\mathrm {i}}{2}}\,\cos \left (\frac {5\,c}{2}+\frac {5\,d\,x}{2}\right )+2\,\sqrt {\cos \left (c+d\,x\right )}\,{\mathrm {e}}^{\frac {c\,7{}\mathrm {i}}{2}+\frac {d\,x\,7{}\mathrm {i}}{2}}\,\cos \left (\frac {7\,c}{2}+\frac {7\,d\,x}{2}\right )} \]
int(((a + a*cos(c + d*x))^(3/2)*(A + B*cos(c + d*x) + C*cos(c + d*x)^2))/c os(c + d*x)^(9/2),x)
-((a + a*cos(c + d*x))^(1/2)*((4*C*a*exp((c*7i)/2 + (d*x*7i)/2)*sin((5*c)/ 2 + (5*d*x)/2))/d + (4*a*exp((c*7i)/2 + (d*x*7i)/2)*sin(c/2 + (d*x)/2)*(4* A + 6*B + 11*C))/(3*d) - (4*a*exp((c*7i)/2 + (d*x*7i)/2)*sin((3*c)/2 + (3* d*x)/2)*(52*A + 48*B + 65*C))/(15*d) - (4*a*exp((c*7i)/2 + (d*x*7i)/2)*sin ((7*c)/2 + (7*d*x)/2)*(104*A + 126*B + 175*C))/(105*d)))/(6*cos(c + d*x)^( 1/2)*exp((c*7i)/2 + (d*x*7i)/2)*cos(c/2 + (d*x)/2) + 6*cos(c + d*x)^(1/2)* exp((c*7i)/2 + (d*x*7i)/2)*cos((3*c)/2 + (3*d*x)/2) + 2*cos(c + d*x)^(1/2) *exp((c*7i)/2 + (d*x*7i)/2)*cos((5*c)/2 + (5*d*x)/2) + 2*cos(c + d*x)^(1/2 )*exp((c*7i)/2 + (d*x*7i)/2)*cos((7*c)/2 + (7*d*x)/2))